import { defHttp } from "@/utils/http";
import { baseUrlApi } from './utils'

export type DetailResult = {
  code: number;
  data: any;
  msg: string;
};

/** 库存异动列表带分页 */
export const setStockAbnormalOrderPagelist = (data?: object) => {
  return defHttp.post<DetailResult>({
    url: baseUrlApi("/stockAbnormalOrder/pagelist"),
    data
  });
};

/** 库存异动单据明细 */
export const getStockAbnormalOrderDetail = (data?: object) => {
  return defHttp.post<DetailResult>({
    url: baseUrlApi("/stockAbnormalOrder/detail"),
    data
  });
};
